# -*- codeing = utf-8 -*-
# @Time : 2024/3/14 23:00
# @Author : huangjing
# @File : myRequests.py
# @Software : PyCharm
import requests
class MyRequests():

    def request(self,method:str,url:str,**kwargs):
        return requests.request(method=method,url=url, **kwargs)

    def doPostFile(self,url:str,filePath:str) -> str:
        files = {'file':open(filePath,'rb')}
        return requests.post(url,files=files).text
